import service from '@/utils/requests'
// import req from '../req';

// type为hour
export function Analysis(data) {
  return service({
    url: '/dataHour',
    method: 'post',
    data: data
  });
}
// type为scalar
export function Scalar(data) {
  return service({
    url: '/dataScalar',
    method: 'post',
    data: data
  });
}

// 登录
export function ProjectGroupone(data) {
  // console.log(data,'data',[data,a]);
  return service({
    url: '/data',
    method: 'post',
    data: data
  });
}

export function getShuShiList() {
  // console.log(data,'data',[data,a]);
  return service({
    url: '/getYunXing',
    method: 'get',
    // data: data
  });
}
export function getDeviceList() {
  // console.log(data,'data',[data,a]);
  return service({
    url: '/getDeviceList',
    method: 'get',
    // data: data
  });
}
export function getConfiguration() {
  // console.log(data,'data',[data,a]);
  return service({
    url: '/getConfiguration',
    method: 'get',
    // data: data
  });
}
// 确认提交
export function updateConfiguration(data) {
  // console.log(data,'data',[data,a]);
  return service({
    url: '/updateConfiguration',
    method: 'post',
    data: data
  });
}

